package com.ecust.ml.cardriving.model;

import com.fly.lib.util.IntUtil;

public class CarFactory {
	
	/**
	 * 随机（道路）产生一辆新小车
	 * @return
	 */
	public static Car getARandomCar() {
		int randomNumber = IntUtil.getRandomInt(1, 10);
		
		return new Car(randomNumber%3 + 2);
	}
}
